/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 27.03.13
 * Time: 15:19
 * To change this template use File | Settings | File Templates.
 */
package AS3 {
public class EnergyConsumption {

    private var _electricityEnergy:Number = 0;   //GJ
    private var _coalEnergy:Number = 0;         //GJ
    private var _gasEnergy:Number = 0;          //GJ
    private var _oilEnergy:Number = 0;           //GJ
    private var _biomassEnergy:Number = 0;       //GJ

    public function EnergyConsumption() {
    }

    public function get overallEnergy():Number {
        return _electricityEnergy + _coalEnergy + _gasEnergy + _oilEnergy + _biomassEnergy;
    }

    public function get electricityEnergy():Number {
        return _electricityEnergy;
    }

    public function set electricityEnergy(value:Number):void {
        _electricityEnergy = value;
    }

    public function get coalEnergy():Number {
        return _coalEnergy;
    }

    public function set coalEnergy(value:Number):void {
        _coalEnergy = value;
    }

    public function get gasEnergy():Number {
        return _gasEnergy;
    }

    public function set gasEnergy(value:Number):void {
        _gasEnergy = value;
    }

    public function get oilEnergy():Number {
        return _oilEnergy;
    }

    public function set oilEnergy(value:Number):void {
        _oilEnergy = value;
    }

    public function get biomassEnergy():Number {
        return _biomassEnergy;
    }

    public function set biomassEnergy(value:Number):void {
        _biomassEnergy = value;
    }
}
}
